
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
<div class="pageHeader">
    <div class="searchBar">
        <ul class="searchContent">
            <li><label><@label key='personnelCode.C,colon'>人员编号：</@label></label> <input type="text" name="personnelCode" value="${condition.personnelCode!''}"/></li>
            <li><label><@label key="workCenter.C,colon">工作中心：</@label></label> 
                    <input id="workCenter.workCenterCode" name="workCenterCode" type="text"  value="${condition.workCenterCode!''}" suggestFields="workCenterCode,workCenterText" postField="workCenterCode"  
                    suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest?hr=hr" lookupGroup="workCenter"/></li>
            <li><label><@label key='materialCode.C,colon'>物料编号：</@label></label>
                <input class="look" id="materialLookup.materialCode" name="materialCode" type="text" postField="materialCode" suggestFields="materialCode,materialText" value="${condition.materialCode!''}"
                suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" remote="${rc.getContextPath()}/manage/material/validateMaterial" warn="<@label key='materialCodeNotExists.M'>物料编号不存在</@label>"/>
                <a class="btnLook" href="${rc.getContextPath()}/manage/material/componentLookUp?lookupType=radio" rel="materialLookup_dialog" title="<@label key='select.C,materialCode.C'>选择物料</@label>"  lookupGroup="materialLookup" ></a>
            </li>
        </ul>
        <ul class="searchContent">
            <li ><label><@label key='date.C,colon'>日期：</@label></label>
            <input type="text" class="date"   name="minTheDate" readonly max_date="{maxTheDate}" value="${condition.minTheDate!''}"/><a class="inputDateButton" href="javascript:;">选择</a>
            <li ><label><@label key="to.C,colon">至：</@label></label>
            <input type="text" class="date"  name="maxTheDate" readonly min_date="{minTheDate}" value="${condition.maxTheDate!''}"/><a class="inputDateButton" href="javascript:;">选择</a></li>
            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit"><@label key="query.B">查询</@label></button>
                    </div>
                </div>
            </li>
            <li class="advancedQuery" >            
                <a id="advancedQuery"href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel())">
                    <@label key="advancedQuery.C">高级查询</@label>
                </a>
                <span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>            
            </li>
        </ul>
    </div>
</div>
<div id="collapsablePanel" style="display:none;" class="pageHeader" >
    <div class="searchBar">
        <ul class="searchContent">
            <li ><label><@label key='shiftingWorkCenter.C,colon'>实际工作中心：</@label></label> <input type="text" name="shiftingWorkCenterCode" value="${condition.shiftingWorkCenterCode!''}"/></li>
            <li><label><@label key='personnelName.C,colon'>人员姓名：</@label></label><input type="text" name="personnelName" value="${condition.personnelName!''}"/>
        </li>
        </ul>
        <ul class="searchContent">
        <!-- <li>
            <label>
                <@label key='description.C,colon'>备注：</@label>
            </label>
            <input type="text" name="memo" value="${condition.memo!''}"/>
        </li> -->
        <li><label><@label key="startTime.C">开始时间</@label></label>
            <input type="text" class="date" readonly="readonly" max_Date="{maxStartDatetime}" dateFmt="yyyy-MM-dd HH:mm:ss" name="minStartDatetime" value="${condition.minStartDatetime!''}"/>
            <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li><label><@label key="to.C,colon">至：</@label></label>
            <input type="text" class="date" readonly="readonly" min_Date="{minStartDatetime}" dateFmt="yyyy-MM-dd HH:mm:ss" name="maxStartDatetime"  value="${condition.maxStartDatetime!''}"/>
            <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
        </ul>
        <ul class="searchContent">
            <li><label><@label key="endTime.C">结束时间</@label></label>
            <input type="text" class="date" readonly="readonly" max_Date="{maxEndDatetime}" dateFmt="yyyy-MM-dd HH:mm:ss" name="minEndDatetime" value="${condition.minEndDatetime!''}"/>
            <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li><label><@label key="to.C,colon">至：</@label></label>
            <input type="text" class="date" readonly="readonly" min_Date="{minEndDatetime}" dateFmt="yyyy-MM-dd HH:mm:ss" name="maxEndDatetime"  value="${condition.maxEndDatetime!''}"/>
            <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
        </ul>
    </div>
</div>    
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="performance_add" labelKey="add.B" defalutName="新增">
            <li><a class="add"  mask="true" width="750" height="500" href="${rc.getContextPath()}/manage/performance/addPerformance?navTabId=${navTabId!''}" target="dialog" title="<@label key='add.B'>新增</@label>"><span><@label key='add.B'>新增</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="performance_add" labelKey="batch.C,add.B" defalutName="批量新增">
            <li><a class="add"  mask="true" width="750" height="600" href="${rc.getContextPath()}/manage/performance/batchAddPerformance?navTabId=${navTabId!''}" target="dialog" title="<@label key='add.B,batch.C'>批量新增</@label>"><span><@label key='add.B,batch.C'>批量新增</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="performance_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" mask="true" width="650" height="360" href="${rc.getContextPath()}/manage/performance/modifyPerformance?id={performance_id}&navTabId=${navTabId!''}" target="dialog" title="<@label key='edit.B'>修改</@label>"><span><@label key='edit.B'>修改</@label></span></a></li>
            </@buttonRight>
            <li><a class="icon" mask="true" width="650" height="360" target="dialog" mask="true" resizable="false" rel="viewPerformance"
            href="${rc.getContextPath()}/manage/performance/viewPerformance?id={performance_id}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a></li>
            <@buttonRight menuCode="performance_delete" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/performance/deletePerformance?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelPerformance.M'>确认要删除选择的绩效吗？</@label>"><span><@label key="delete.B">删除</@label></span>
                </a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="140%" layoutH="164">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="30"><@label key="serialNumber.C">序号</@label></th>
                <th width="120" orderField="personnelCode" <#if (page.orderField?? && page.orderField == 'personnelCode')>class="${page.orderDirection!''}"</#if>><@label key='personnelCode.C'>人员编号</@label></th>
                <th width="120" ><@label key='personnelName.C'>姓名</@label></th>
                <!-- <th width="100"><@label key='personnelTypeCode.C'>人员类型编号</@label></th>
                <th width="100"><@label key='personnelTypeText.C'>人员类型描述</@label></th> -->
                <th width="100"><@label key="workCenter.C">工作中心</@label></th>
                <th width="100"><@label key="shiftingWorkCenter.C">实际工作中心</@label></th>
                <th width="80"><@label key='date.C'>日期</@label></th>
                <th width="100"><@label key='startTime.C'>开始时间</@label></th>
                <th width="100"><@label key='endTime.C'>结束时间</@label></th>
                <th width="80"><@label key='materialCode.C'>物料编号</@label></th>
                <th width="80"><@label key='materialText.C'>物料描述</@label></th>
                <th width="50"><@label key='quantity.C'>数量</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as performance>
            <tr target="performance_id" rel="${performance.id!''}">
                <td><input name="ids" value="${performance.id!''}" type="checkbox"></td>
                <td>${page.startRow + performance_index}</td>
                <td>${performance.personnelCode!''}</td>
                <td>${performance.personnelName!''}</td>
            <!--     <td>${performance.personnelTypeCode!''}</td>
                <td>${performance.typeText!''}</td> -->
                <td>${performance.workcenterText!''}</td>
                <td>${performance.shiftingWorkcenterText!''}</td>
                <td>${(performance.theDate?string("yyyy-MM-dd"))?if_exists}</td>
                <td>${(performance.startDatetime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${(performance.endDatetime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${performance.materialCode!''}</td>
                <td>${performance.materialText!''}</td>
                <td>${performance.quantity!''}</td>
            </tr>
        </#list>
        <#else>
        <tr target="performance_id">
            <td colspan="14" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="performance_id">
            <td colspan="14" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>
<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});
</script>